using System;
using System.Collections.Generic;
using System.Text;

namespace Xyne.Actions
{
    /// <summary>
    /// A wrapper around an action to provide meta-data for triggering.
    /// </summary>
    public class TriggeredAction
    {
        private Action action;
        public Action Action
        {
            get { return action; }
            set { action = value; }
        }

        private int minValue;
        /// <summary>
        /// The minimum value the parent has to be in order to trigger.
        /// </summary>
        public int MinValue
        {
            get { return minValue; }
            set { minValue = value; }
        }

        private int triggeredValue;
        /// <summary>
        /// The value the action will be assigned when triggered.
        /// </summary>
        public int TriggeredValue
        {
            get { return triggeredValue; }
            set { triggeredValue = value; }
        }
    }
}
